package com.company.mapper;

import com.company.model.Goods;

import java.util.List;

public interface GoodsMapper {
    void createTable();
    void dropTable();

    List<Goods> findAll();
    List<Goods> findLike(String like);
    List<Goods> findByType(String type);
    List<Goods> findByLikeAndType(String like, String type);

    void insertOne(Goods goods);
    void updateOne(Goods goods);
    void deleteOne(int id);
}
